import axios from "@/api/axios";

export default {
  // 根据仓库查询物料列表
  getArrivalNoticeList(params) {
    return axios.post(`/v3/warehouse/arrivalNotice/queryPageByCondition`, {
      ...params
    })
  },
  getchaseinfo(params) {
    return axios.get(`/v3/purchase/purchaseOrder/queryNoyByCondition?no=${params}`)
  },
  getCurrentMaterialValue(params) {
    return axios.post(`v3/purchase/purchaseOrderGoods/queryByCondition`, {
      ...params
    })
  },
  getuserValue() {
    return axios.post("v3/virtualSystem/v1/user/queryHome", {
      page: 1,
      size: 999,
      sort: "timestamp",
      entity: {
        organizationNo: sessionStorage.organizationNo
      }
    });
  },
  addSupplierinfo(params) {
    return axios.post(`/v3/warehouse/arrivalNotice/add`, {
      ...params
    })
  },
  editSupplierinfo(params) {
    return axios.post(`/v3/warehouse/arrivalNotice/edit`, {
      ...params
    })
  },
  arrivalNoticeGoods(params) {
    return axios.post(`/v3/warehouse/arrivalNoticeGoods/edit`, {
      ...params
    })
  },
  delSupplierinfo(params) {
    return axios.get(`/v3/warehouse/arrivalNotice/delByNo?no=${params}`)
  },
  delLisrSupplierinfo(params) {
    return axios.post(`/v3/warehouse/arrivalNotice/delListByNo`, params)
  },
  //   查询图片
  rrivalNoticePicture(params) {
    return axios.get(`v3/warehouse/arrivalNoticePicture/queryByNo?no=${params}`)
  },
  delCollectionPicture(params) {
    return axios.get(`v3/warehouse/arrivalNoticePicture/delByNo?no=${params}`)
  }
}
